<h1>Editing store</h1>

<% form_for(@store) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :company %><br />
    <%= select("store","company_id",Company.find(:all).collect {|c| [c.name, c.id]}) %>
  </p>
  <p>
    <%= f.label :code %><br />
    <%= f.text_field :code %>
  </p>
  <p>
    <%= f.label :location %><br />
    <%= f.text_field :location %>
  </p>
  <p>
    <%= f.label :zipcode %><br />
    <%= f.text_field :zipcode %>
  </p>
  <p>
	<%= link_to 'Cancel', @store.company %> | <%= f.submit "Update" %>
  </p>
<% end %>